#import <UIKit/UIKit.h>
#import "PIDotView.h"
#import "PIActionView.h"


@class LITableView;
@class PIDotView;
@class PIActionView;
@class PIPlugin;


@interface PITodoView : UIView

-(void)dealloc;

+(CGFloat)nameRowHeightForFont:(UIFont*)font;
+(CGFloat)detailRowHeightForFont:(UIFont*)font;
	
+ (PITodoView *)createView:(CGRect)frame table:(LITableView *) table;
- (void)setViewForTable:(LITableView*)table withPlugin:(PIPlugin*)pi title:(NSString*)title due:(NSString*)dates dueShort:(NSString*)shortDates overdue:(BOOL)overdue importance:(int)importance priority:(NSString*)prty action:(int)actn flagged:(BOOL)flagged showIcons:(BOOL)showIcons;


@property (nonatomic, retain) PIDotView* dot;
@property (nonatomic, retain) LILabel* name;
@property (nonatomic, retain) LILabel* due;
@property (nonatomic, retain) LILabel* priority;
@property (nonatomic, retain) PIActionView* action;
@property (nonatomic, retain) UIImageView* flag;
@property (nonatomic, retain) NSString* shortDue;

@end
